package com.example.websocket.websocket.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

import javax.websocket.server.ServerEndpoint;

/**
 * @program: websocket
 * @description:
 * @author: fks
 * @create: 2025-03-23 15:45
 **/

@Configuration
public class WebsocketConfig {

    @Bean//将方法的返回值交给spring管理
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }
}
